/***********************************************************************************
    Filename: hal_joystick.h

    Copyright 2007 Texas Instruments, Inc.
***********************************************************************************/
#include <string.h>

#include "hal_types.h"
#include "hal_board.h"
#include "hal_spi.h"
#include "hal_spi_generic.h"
#include "hal_mcu.h"
#include "hal_defs.h"
#include "hal_rf.h"
#include "cc2500.h"

// Get the state of the buttons
extern void js_vSampleButtons(void)
{
	tRfTxMsg.tNesBotton.nesStart = ((P1IN & BIT2) == BIT2);
}

extern void js_vInit(void)
{
	memcpy(&tRfTxMsg, 0, sizeof(RF_TX_MSG));
}
